//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03A
TN_Widget.CreateTable([['Brian Patafie','Victory Theatre - IN','Evansville, IN','Saturday','5/11/2024','8:00 PM','6122315','Brian-Patafie-5-11-2024'],['Legacy Reunion: Earth, Wind & Fire Alumni','Victory Theatre - IN','Evansville, IN','Saturday','5/25/2024','7:00 PM','6281811','Legacy-Reunion--Earth--Wind---Fire-Alumni-5-25-2024'],['Little Feat','Victory Theatre - IN','Evansville, IN','Monday','6/24/2024','7:00 PM','6278332','Little-Feat-6-24-2024'],['Brad Williams','Victory Theatre - IN','Evansville, IN','Friday','6/28/2024','7:00 PM','5859696','Brad-Williams-6-28-2024'],['Killer Queen','Victory Theatre - IN','Evansville, IN','Wednesday','7/10/2024','7:00 PM','6268620','Killer-Queen-7-10-2024'],['A.J. Croce: Croce Plays Croce','Victory Theatre - IN','Evansville, IN','Wednesday','7/17/2024','7:00 PM','6329818','A-J--Croce--Croce-Plays-Croce-7-17-2024'],['Keith Sweat','Victory Theatre - IN','Evansville, IN','Saturday','7/27/2024','7:00 PM','6409990','Keith-Sweat-7-27-2024'],['Collective Soul','Victory Theatre - IN','Evansville, IN','Sunday','7/28/2024','7:00 PM','6317250','Collective-Soul-7-28-2024'],['Jim Breuer','Victory Theatre - IN','Evansville, IN','Saturday','8/3/2024','6:30 PM','6205055','Jim-Breuer-8-3-2024'],['Brian Regan','Victory Theatre - IN','Evansville, IN','Sunday','8/11/2024','8:00 PM','6369811','Brian-Regan-8-11-2024'],['Whose Live Anyway?','Victory Theatre - IN','Evansville, IN','Sunday','9/15/2024','7:30 PM','6358482','Whose-Live-Anyway--9-15-2024'],['The Spinners','Victory Theatre - IN','Evansville, IN','Thursday','9/19/2024','7:00 PM','6384213','The-Spinners-9-19-2024'],['Rumours - A Fleetwood Mac Tribute','Victory Theatre - IN','Evansville, IN','Friday','9/27/2024','7:00 PM','6310417','Rumours---A-Fleetwood-Mac-Tribute-9-27-2024'],['David Brighton's Space Oddity','Victory Theatre - IN','Evansville, IN','Friday','10/25/2024','7:00 PM','6310992','David-Brighton-s-Space-Oddity-10-25-2024'],['The Purple Xperience','Victory Theatre - IN','Evansville, IN','Saturday','10/26/2024','7:30 PM','6270142','The-Purple-Xperience-10-26-2024'],['David Sedaris','Victory Theatre - IN','Evansville, IN','Sunday','10/27/2024','7:00 PM','6395657','David-Sedaris-10-27-2024'],['Ginuwine','Victory Theatre - IN','Evansville, IN','Saturday','11/23/2024','7:00 PM','6388975','Ginuwine-11-23-2024']],'Victory Theatre Evansville','http://www.ticketnetwork.com/ticket/Victory-Theatre-Evansville-events.aspx');